#include "MarsPrecompile.h"

#include "MarsSamplerState.h"
#include "MarsRenderer.h"

using namespace Graphics;

bool SamplerState::Create()
{
	HRESULT hr = Renderer::Instance().GetDevice()->CreateSamplerState( 
		&m_samplerDesc,
		&m_pSampler );

	if ( FAILED( hr ) )
	{
		return false;
	}

	return true;
}

void SamplerState::Delete()
{
	SAFE_RELEASE( m_pSampler );
}
